package com.ziqing.apeletnews.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.ziqing.apeletnews.R;
import com.ziqing.apeletnews.base.BaseAdapter;
import com.ziqing.apeletnews.base.BaseViewHolder;

import java.util.List;

/**
 * Created by WT on 2018/4/13.
 */

public class HotAdapter extends BaseAdapter<String>{

    private ImageView iv_hot;

    public HotAdapter(@NonNull Context mContext, @NonNull List<String> listData, int layoutId) {
        super(mContext, listData, layoutId);
    }


    @Override
    public void onBindViewHolder(BaseViewHolder holder, String data, int position) {
        iv_hot = holder.getView(R.id.iv_hot);
        Glide.with(mContext).load(data).into(iv_hot);
    }
}
